﻿using System;
using System.ServiceModel;
using System.ServiceProcess;

namespace ITXLMSVC
{
    partial class ITXLMSVC : ServiceBase
    {
        ServiceHost host;
        public ITXLMSVC()
        {
            InitializeComponent();
            this.ServiceName = "ITXLMSVC";
            this.CanStop = true;
            this.CanPauseAndContinue = true;
            this.AutoLog = true;

        }

        protected override void OnStart(string[] args)
        {
            host = new ServiceHost(typeof(IntexReptServBL), new Uri("http://localhost:8002/"));
            host.Open(); 
        }

        protected override void OnStop()
        {
            host.Close();
        }
    }
}
